package com.lagou.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "lagou-service-email")
public interface EmailService {

    @RequestMapping("/email/{email}/{code}")
    public boolean sendCode(@PathVariable String email, @PathVariable String code);
}
